Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix label generation for node discovery #1116

Merged
merged 1 commit into from
May 4, 2024
Merged

Conversation

jcmoraisjr
Copy link
Owner

A set of labels are used to find all the nodes of a cluster of ingress controllers. The controller instance running the code takes its own set of labels and use it to find the others via apiserver. The set of labels has, however, some labels that uniquely identify a pod, like pod-template-hash created by the ReplicaSet, making the node discovery to discover only one node, the one being running. On shutdowns, this makes the controller to incorrectly think it is running alone, leading to remove the status of all the ingress resources. Removing all the well-known label keys that uniquely identifies a pod solves this issue.

A set of labels are used to find all the nodes of a cluster of ingress
controllers. The controller instance running the code takes its own
set of labels and use it to find the others via apiserver. The set of
labels has, however, some labels that uniquely identify a pod, like
pod-template-hash created by the ReplicaSet, making the node discovery
to discover only one node, the one being running. On shutdowns, this
makes the controller to incorrectly think it is running alone, leading
to remove the status of all the ingress resources. Removing all the
well-known label keys that uniquely identifies a pod solves this issue.
Copy link

@avmnu-sng avmnu-sng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jcmoraisjr jcmoraisjr merged commit 10a90d2 into master May 4, 2024
2 checks passed
@jcmoraisjr jcmoraisjr deleted the jm-node-discovery branch May 4, 2024 00:49
@jcmoraisjr jcmoraisjr removed the v0.10 label Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants